import fetch from '@/util/fetch'
// encData
export function enc_data_post(options) {
  return fetch({
    url: 'app/wxprogram/enc_data',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// queryToken
export function query_openid_post(options) {
  return fetch({
    url: 'app/wxprogram/query_openid',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// tokenEffective
export function session_key_effective_post(options) {
  return fetch({
    url: 'app/wxprogram/session_key_effective',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}
